#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include "kubiki.h"

using namespace std;

int main() {
	ifstream fin("input.txt");
	string input;
	fin >> input;
	vector< string > blocks;
	while (!fin.eof()) {
		string tmp;
		fin >> tmp;
		blocks.push_back(tmp);
	}
	fin.close();
	Cubes(input, blocks);
	return 0;
}